<template>
	<view class="box">
		<view class="boxtx">
			<image class="tupian" :src="$store.state.user.faceUrl"></image>
			<view>更换头像</view>
		</view>
		<view class="xiugai">
			<view class="bian">
				<view class="xxtit">昵&nbsp&nbsp&nbsp称:</view>
				<input class="xxbody" disabled="true"
					:value="$store.state.user.nickname ?$store.state.user.nickname: $store.state.user.username" />
				<view class="rig cuIcon-post"></view>
			</view>
			<view class="bian">
				<view class="xxtit">座右铭:</view>
				<input class="xxbody" disabled="true" value="想对自己说点什么...." />
				<view class="rig cuIcon-post"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onShow() {
			console.log(this.$store.state.user)
		},
		methods: {

		}
	}
</script>

<style scoped>
	.box {
		background: linear-gradient(#3F9D83, #3F9D83, #f4f4f4, #f4f4f4);
		height: 93vh;
		padding-top: 10px;
	}

	.boxtx {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		margin: 0px 15px;
		border-radius: 5px;
		padding-bottom: 2vh;
	}
	.boxtx>view{
		width: 100%;
		text-align: center;
		color: #FFFFFF;
	}

	.tupian {
		margin-top: 4vh;
		border-radius: 50%;
		background-color: #ccc;
		height: 100px;
		width: 100px;
	}

	.xiugai {
		height: 50vh;
		background-color: #fff;
		overflow: hidden;
		border-radius: 15px;
		margin: 10px 15px;
		padding: 20px;
	}

	.xiugai>view {
		display: flex;
	}

	.xxtit {
		font-weight: bold;
	}

	.xxbody {
		font-size: 14px;
		color: #666;
		padding-left: 10px;
	}

	.bian {
		border-bottom: 1px solid #DCDBDB;
		width: 100%;
		padding: 10px;
		background-color: #FFFFFF;
		
	}

	.rig {
		color: #23B48D;
		flex: 1;
		text-align: right;
	}
</style>
